LETTER.PREVIEW Function

Syntax

Letter_Name as C = LETTER.PREVIEW(C layoutname [,C filter [,C order [,L modal [,L session_modal [,* arguments [,* options ]]]]]])

Arguments

layoutname

The name of the letter to preview.

filter

Optional. Default = All records. A logical expression that selects records from the table.

order

Optional. Default = Record number order. A character expression that orders the records that are selected. This expression must be less than 240 characters long.

modal

Optional. Default = .F.

Value
Description
.T.

The user cannot change focus without closing the dialog.

.F.

The user can change focus without closing the dialog.

session_modal

Optional. Default = .T.

Value
Description
.T.

This means that any script that calls the LETTER.PREVIEW() method will pause until the Print Preview window is closed. However, the preview window itself is not a modal dialog box. The user is free to select other windows in Alpha Anywhere.

.F.

The script does not pause until the Print Preview window is closed.

arguments

See OBJECT.PREVIEW() for more details.

options

See OBJECT.PREVIEW() for more details.

Description

The LETTER.PREVIEW() method displays the Preview dialog box showing the selected letter.

See Also